package com.dog.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserController {

	 @Value("${server.port}")
	 private String port;
	
	@RequestMapping("index")
	public String index(String name) {
		System.out.println(name);
		String res="我是来自于服务号端口为"+"host:"+port;
		System.out.println(res);
		return res;
	}
}
